﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GameStudio.Framework.GraphicsEngine
{
    public static class MyProgram
    {
        //public static void Run()
        //{
        //    //DeviceContext.Current.Initilize();
        //    DeviceContext.Current.MainForm.Show();
        //    DeviceContext.Current.MainForm.Closed += (o, e) => Application.Exit();
        //    InitilizeVisualObjects();
        //    //---------------------------------------------------------
        //    while (DeviceContext.Current.MainForm.Created)
        //    {
        //        Application.DoEvents();
        //        DeviceContext.Current.Device.Clear(ClearFlags.Target, Color.Black, 0, 0);
        //        DeviceContext.Current.Device.BeginScene();

        //        DeviceContext.Current.Device.SetRenderState(RenderState.Ambient, Color.White.ToArgb());

        //        RenderVisualObjects();

        //        DeviceContext.Current.Device.EndScene();
        //        DeviceContext.Current.Device.Present();
        //    }
        //}
    }
}
